/* ==================================================================   
 * Created [2009-4-27 下午11:32:55] by Jon.King 
 * ==================================================================  
 * TSS 
 * ================================================================== 
 * mailTo:jinpujun@hotmail.com
 * Copyright (c) Jon.King, 2009-2012 
 * ================================================================== 
*/

package com.jinhe.tss.core.cachepool.proxy;

import com.jinhe.tss.core.cachepool.IPool;

/** 
 * <p> DisableMixin.java </p> 
 * 
 * @author Jon.King 2007-1-5
 *
 */
public class DisableMixin implements IDisable{
    
    private IPool pool;
    
    public DisableMixin(IPool pool){
        this.pool = pool;
    }

    public void stop() {
        pool.getCacheStrategy().setDisabled("1");
    }

    public void start() {
        pool.getCacheStrategy().setDisabled("0");
    }

}

